package com.cooperate.fly.mapper;

import com.cooperate.fly.bo.DataRight;
import com.cooperate.fly.datasource.SqlMapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@SqlMapper
public interface DataRightMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteBySchemaId(Integer schemaId);

    int insert(DataRight record);

    int insertSelective(DataRight record);

    DataRight selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DataRight record);

    int updateByPrimaryKey(DataRight record);

    ArrayList<DataRight> selectBySchemaAndType(@Param("schemaId") int schemaId,@Param("_type") int _type);

    List<DataRight> selectByUserId(@Param("userId") int userId, @Param("type") int type);
}